# -*- coding: utf-8 -*-
# @Time    : 2021/3/19 17:56
# @Author  : Zhangrenjie
# @Email   : zhangrenjie1998@163.com
# @File    : demo_prime.py
# @Software: PyCharm

for i in range(100, 501):
    j = 2
    while j < i:
        if i % j == 0:
            break
        else:
            if j == (i-1):
                print(f"{i}是质数")
            j += 1
